import http from './index'


export const getList = (params) => http({
  url: '/device-os/person/list',
  method: 'GET',
  params,
})
export const getListNew = (params) => http({
  url: '/device-os/person/selectAreaPerson',
  method: 'GET',
  params,
})
export const selectAllPerson = (params) => http({
  url: '/device-os/person/selectAllPerson',
  method: 'GET',
  params,
})

export const getListSel = (params) => http({
  url: '/device-os/depart/list',
  method: 'GET',
  params,
})

export const getdelList = (params) => http({
  url: '/device-os/fileFailLog/list',
  method: 'GET',
  params,
})

export const exportList = (params) => http({
  url: '/device-os/fileFailLog/exportList',
  method: 'GET',
  params,
})

export const create = (data) => http({
  url: '/device-os/person/add',
  method: 'POST',
  data,
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  },
})

export const update = (data) => http({
  url: '/device-os/person/update',
  method: 'POST',
  data,
})

export const createIDcard = (data) => http({
  url: '/device-os/person/add/base64',
  method: 'POST',
  data,
})

export const del = (data) => http({
  url: '/device-os/person/delete',
  method: 'POST',
  data,
})

export const delError = (data) => http({
  url: '/device-os/fileFailLog/delete',
  method: 'POST',
  data,
})

export const appUpdate = (data) => http({
  url: '/device-os/appUpdate',
  method: 'POST',
  data,
})
export const getIp = (data) => http({
  url: '/device-os/getIp',
  method: 'POST',
  data,
})
export const updateBatch = (data) => http({
  url: '/device-os/person/updateBatch',
  method: 'POST',
  data,
})
export const getConfigFileName = (data) => http({
  url: '/device-os/getConfigFileName',
  method: 'POST',
  data,
})
